package 动态规划;

public class 打印二维数组 {


    public static void main(String[] args) {
        fun();
    }

    private static void fun() {


        int[][] dp = new int[][]{
                {1,2,3},
                {1,2,3,4},
                {1,2,5},
                {4,2,5},
        };
        int n = dp.length ;
        int m = dp[0].length ;

        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print(dp[i][j] + " ");
            }
            System.out.print("\r\n");
        }
    }


}
